<?php

class ShowcaseController extends Zend_Controller_Action {

    public function init() {
        /* Initialize action controller here */
    }

    public function indexAction() {

	/*Pagination Login*/
        $itemsPerPageReviews = 9;
        $currentPageReviews = 1;
	if ($this->_getParam('page') && $this->_getParam('page') != "") {
            $currentPageReviews = $this->_getParam('page');
        }
	$offset = ($currentPageReviews - 1) * $itemsPerPageReviews;

	/*Load Testimonal PortFolio*/
	$portFolioModel = new Model_Portfolio();
	$portfolios = $portFolioModel ->fetchPortfolio("",$itemsPerPageReviews, $offset);

	$paginator = new CMS_Paginator();
	$paginator->setItemsPerPage($itemsPerPageReviews);
	$paginator->setItemsTotal($portFolioModel->getPortfolioCount());
	$paginator->setCurrentPage($currentPageReviews);
	//Router Based Link generation currently not implemented
	$routerName = Zend_Controller_Front::getInstance()->getRouter()->getCurrentRouteName();
	$link = $this->view->url(array('page' => 'PAGENO'), $routerName, false);
	$paginator->paginate($link);

	/*Passing data to View*/
	$this->view->paginator = $paginator;
	$this->view->portfolios = $portfolios;
	
		$this->view->showMetaDescription = TRUE;
		$this->view->showMetaKeyword = TRUE;
		$this->view->headTitle('Citrusbug Showcase - Check out our Portfolio');
		$this->view->META_DESCRIPTION = "Here you can see our latest and upcoming projects list which we have developed and design by citrusbug.";
		$this->view->META_KEYWORDS = "web development, web design, mobile application development, seo, graphic design, offshore software development, PHP , linux programming, application development, usa, uk, canada, germany ,netherland , denmark";
	
	
    }

}

?>
